Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework host indexing. #499

Merged
merged 6 commits into from
Oct 31, 2023
Merged

Rework host indexing. #499

merged 6 commits into from
Oct 31, 2023

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Oct 30, 2023

The implementation was a bit messy. This should also make it easier to override scalar indexing in a back-end without affecting vectorized indexing. It also moves bounds checking to the CPU, which should improve the case where the array and indices are on the GPU already.

Fixes JuliaGPU/CUDA.jl#1678

@maleadt maleadt merged commit 4c13a99 into master Oct 31, 2023
13 checks passed
@maleadt maleadt deleted the tb/indexing branch October 31, 2023 15:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

view(data, idx) boundschecking is disproportionately expensive
1 participant